<!--
  @author HandsomeHan
  @date 2018/12/6 22:04:26
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
<th:block th:fragment="buildSelect(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(labelName)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <select th:id="${inputId}" th:name="${inputId}" th:lay-filter="${inputId}"></select>
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="buildXmSelect(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(labelName)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <div th:id="${inputId}" th:xm-select-name="${inputId}"></div>
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="buildTime(labelName,inputId)"
          th:assert="${!#strings.isEmpty(labelName)&&!#strings.isEmpty(inputId)}">
    <div class="item-inline">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline">
                    <input type="text" th:id="${inputId}" th:name="${inputId}" autocomplete="off"
                           placeholder="yyyy/MM/dd - yyyy/MM/dd"
                           class="layui-input">
                </div>
            </div>
        </div>
    </div>
</th:block>
<th:block th:fragment="submitButtonGroup">
    <div class="item-submit">
        <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon"></i>
        </button>
        <button type="reset" lay-filter="zmn-form-reset" class="layui-btn layui-btn-primary layui-btn-sm"><i
                class="layui-icon"></i></button>
    </div>
</th:block>
<th:block th:fragment="buildLinkSelect(labelName,idArr)">
    <div class="item-inline col2">
        <label class="inline-label" th:text="${labelName}+'：'"></label>
        <div class="inline-box">
            <div class="inline-box-cc">
                <div class="box-input-inline col2">
                    <select th:id="${idArr[0]}" th:name="${idArr[0]}" th:lay-filter="${idArr[0]}">
                        <option value="">-选择-</option>
                    </select>
                </div>
                <div class="box-input-inline col2">
                    <select th:id="${idArr[1]}" th:name="${idArr[1]}" th:lay-filter="${idArr[1]}">
                        <option value="">-选择-</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
</th:block>

<div th:fragment="query">
    <div class="zmn-form-item">
        <th:block th:replace="::buildXmSelect('子公司','companyId')"/>
        <th:block th:replace="::buildXmSelect('服务公司','manageCompanyId')"/>
        <th:block th:replace="::buildXmSelect('城市','cityId')"/>
        <div class="item-inline">
            <label class="inline-label">月份：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" class="layui-input" id="searchTime" name="month" autocomplete="off">
                    </div>
                </div>
            </div>
        </div>
        <th:block th:replace="::submitButtonGroup"/>
    </div>
</div>
